package com.itheima.order.feign;
import com.itheima.order.pojo.OrderItem;
import com.itheima.util.Result;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/****
 * @Author:itheima
 * @Description:
 *****/
@FeignClient(name="order")
public interface OrderItemFeign {

    @PostMapping(value = "/orderItem/search" )
    Result<List<OrderItem>> findList(@RequestBody(required = false) OrderItem orderItem);

}